<div style="background-color:#DBE1E5; padding:0px 7px 0 7px; border-left:1px solid #C4CDD2; border-right:1px solid #C4CDD2; border-bottom:1px solid #C4CDD2; width:auto; margin:auto" class="this">
	<div style="width:100%; padding:7px 0px 7px 0px;">
	{ext->class_function class="reiting" id=$smarty.get.reiting_id func="get_one_reiting_data" assign="r_data"}
	<div class="ReitingRow" style="padding-left:10px;"><b>{$r_data.name}</b></div>

{assign var='ct' value='1'}
{assign var='parent' value=$smarty.get.reiting_id}
<form name="mod_rating" enctype="multipart/form-data" method="post">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="reiting">
<input name="referer" type="hidden" value="{ext->get_referer}">
<input name="act" type="hidden" value="mod">
<input type="hidden" name="form_id" value="{$parent}">
{ext->get_form_elements assign="forms" parent=$parent}
{assign var="f_counter" value=0}
{foreach from=$forms item="form" key="key"}
{if ($smarty.get.group_id && $key != "00" && $key != "01") || (!$smarty.get.group_id)}
{math equation="x+y" x=$ct y=1 assign="ct"}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">	
	<tr>
		<td width="15" height="30"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td align="left" width="200">{t t='vote_answer'} Nr. {$key}</td>
		<td width="35"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td style="padding-right:10px;" align="left" width="60%">
			{capture name="keys"}{$key}_name01{/capture}{assign var="k" value=$smarty.capture.keys}
			<input type="text" id="{$key}_name01" name="form_array[{$key}_name01]" value="" class="defaultInputText" style="width:100%;">
			<script language="javascript" type="text/javascript">addValueAndFieldToSpacify ('{$key}_name01','{$form.$k.value|escape:"quotes"}');</script>			
		</td>		
		<td>
			{capture name="keys"}{$key}_param01{/capture}{assign var="k" value=$smarty.capture.keys}
			<input class="defaultInputText" type="text" name="form_array[{$key}_param01]" value="{if $form.$k.value}{$form.$k.value}{else}0{/if}">
		</td>		
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
		<td width="10">
			<a href="#" onClick="if (confirm('{t t='confirm_delete_many'}')) {ldelim}window.document.forms['mod_rating']['form_array[{$key}_param01]'].disabled = true; window.document.forms['mod_rating']['form_array[{$key}_name01]'].disabled = true; window.document.forms['mod_rating'].submit(); return false;{rdelim}" target="_self"><img src="_tvs_system_core_/design/img/admin/_icon_delete.gif"></a>
		</td>		
		<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{capture name="keys"}{$key}_type01{/capture}{assign var="k" value=$smarty.capture.keys}
{/if}
{/foreach}
{if !$key}{math equation="x-y" x=$f_counter y=1 assign="key"}{/if}
{capture name="keys"}{$key}_name01{/capture}{assign var="k" value=$smarty.capture.keys}{assign var="last_name" value=$form.$k.value}
{capture name="keys"}{$key}_param01{/capture}{assign var="k" value=$smarty.capture.keys}{assign var="last_param" value=$form.$k.value}
{if (($last_type != 'empty') or ($last_name != '') or ($last_param != ''))}
	{math equation="x + 1" x=$key|string_format:"%d" assign="key"}
	{if $key < 10}{capture name="keys"}0{$key}{/capture}{assign var="key" value=$smarty.capture.keys}{/if}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">	
	<tr>
		<td width="15" height="30"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td align="left" width="200">{t t='vote_answer'} Nr. {$key}</td>
		<td width="35"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td style="padding-right:10px;" align="left" width="60%">
			{capture name="keys"}{$key}_name01{/capture}{assign var="k" value=$smarty.capture.keys}
			<input type="text" id="{$key}_name01" name="form_array[{$key}_name01]" value="{$form.$k.value}" class="defaultInputText" style="width:100%;">
		</td>		
		<td>
			{capture name="keys"}{$key}_param01{/capture}{assign var="k" value=$smarty.capture.keys}
			<input class="defaultInputText" type="text" name="form_array[{$key}_param01]" value="0">
		</td>		
		<td width="25"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{/if}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9" style="padding:7px; border-top:2px solid #D6DBDE;">	
	<tr>
	<td>
		<input onClick="submit();" type="button" value="{t t='popup_ok'}" class="defaultFormButton">
	</td>
	</tr>
</table>
</form>


	</div>	
</div>